﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Lenovo.CFI.Web.Helper;

namespace Lenovo.CFI.Web.VP
{
    public partial class StatList : System.Web.UI.UserControl
    {        /// <summary>
        /// 动态创建控件。
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Init(object sender, EventArgs e)
        {
            try
            {
                int? type = UrlHelper.GetQueryStringToInt("t");
                if (!type.HasValue) type = 1;

                string ctlPath = @"VP\Stat\Stat" + type.ToString() + ".ascx";

                Control ctl = this.Page.LoadControl(ctlPath);
                ctl.ID = "StatDetails";
                this.PhStat.Controls.Add(ctl);
            }
            catch (Exception ex)
            {
                ErrorHelper.Handle(ex);
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}